import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getWorkHistoryList(params: object) {
    return request({
        url: prefix + '/staffWorkHistory/getWorkHistoryList',
        method: 'get',
        params
    })
}

export function createWorkHistory(data: object) {
    return request({
        url: prefix + '/staffWorkHistory/create',
        method: 'post',
        data
    })
}

export function editWorkHistory(data: object) {
    return request({
        url: prefix + '/staffWorkHistory/edit',
        method: 'post',
        data
    })
}

export function removeWorkHistory(data: object) {
    return request({
        url: prefix + '/staffWorkHistory/delete',
        method: 'post',
        data
    })
}